home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_3.lha / 6_3 / 6_3c2.c < prev    next >
Text File  |  1993-08-08  |  352b  |  17 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / substring = string
  6. ubstring& substring::operator=(string& st)
  7.  
  8.    return *this = st.p->s;
  9.  
  10.  
  11. / substring = substring
  12. ubstring& substring::operator=(substring& sst)
  13.  
  14.    string st = sst;
  15.    return *this = st;
  16.  
  17.